#ifndef __HAL_SPI_H
#define __HAL_SPI_H

#include "system.h"

#define SPI1_TX_SIZE     107u
#define SPI1_RX_SIZE     107u

void MX_SPI1_Init(void);
void spi1_dma_send(void);
void spi1_dma_recv(void);

extern uint8_t spi1_tx_buffer[SPI1_TX_SIZE];
extern uint8_t spi1_rx_buffer[SPI1_RX_SIZE];
extern bool spi1_send_finish;
extern bool spi1_recv_finish;

#endif
